package cn.Alibaba.basic.util;

import lombok.Data;

@Data
public class JsonResult {

    private String msg="操作成功";

    private Boolean success=true;

    private Object resultObj;


    public Object getResultObj() {
        return resultObj;
    }

    public JsonResult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return this;
    }

    public JsonResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public JsonResult setMsg(String msg) {
        this.success=false;
        this.msg = msg;
        return this;
    }

    public static JsonResult me(){
        return new JsonResult();
    }
}
